Automattic\Jetpack\Extensions\Premium_Content\Subscription_Service\Abstract_Token_Subscription_Service B

Total Complexity 99
Dependencies 4
Dependents 12
Total lines 538
Lines of code 280
Logical lines of code 171
Comment lines 188
Methods 23
Properties 0

Methods 23

Method Rating Maintainability Complexity Lines of code
maybe_gate_access_for_user_if_tier()
C
36 27 74
user_has_access()
A
52 9 24
abbreviate_subscriptions()
A
54 8 19
validate_subscriptions()
S
56 7 18
visitor_can_view_content()
S
52 4 26
set_token_cookie()
S
65 5 8
find_metadata()
S
63 4 11
decode_token()
S
62 4 11
token_from_request()
S
64 4 9
clear_token_cookie()
S
64 4 9
get_token_payload()
S
64 3 11
access_url()
S
63 3 11
get_token_property()
S
69 2 7
get_subscriber_email()
S
69 2 7
maybe_gate_access_for_user_if_post_tier()
S
65 2 9
get_and_set_token_from_request()
S
68 2 8
token_from_cookie()
S
73 2 5
has_token_from_cookie()
S
77 2 3
get_rest_api_token_url()
S
74 1 4
get_key()
S
100 1 0
is_current_user_pending_subscriber()
S
100 1 0
is_current_user_subscribed()
S
79 1 3
initialize()
S
82 1 3